<?php
$selected_pro = 0;
$selected_pro_setting = array(
    'table_name' => 'pro',
    'key_field' => 'id',
    'value_field' => 'nom',
    'init_data' =>array('key'=>0,'name'=>'Public pour tous')
);
$selected_plv_cat =0;
$selected_plv_setting = array(
    'table_name' => 'plv_pro_cat',
    'key_field' => 'id',
    'value_field' => 'nom'
);
?>
<?php
if ($query->num_rows() > 0) {
    $aRow = $query->row();
    $selected_pro = $aRow->pro_id;
    $selected_plv_cat = $aRow->plv_cat;
}
?>
<div id="wrapper-content">
    <table class="titrepage" width="100%">
        <tr>
            <td >Modifier P.L.V</td>
            <td align="right"> </td>
        </tr>
    </table>
    <?php echo form_open('fichiers/update_pro_plv/' .$aRow->id.'/' . $per_page . '/' . $off_set); ?>
    <table width="100%" class=""list>
        <tr>
            <td width="30%" >Fichier</td>
            <td><input type="text" readonly="true" style="background-color: #DEDEDE" name ="nom" size="30" value="<?php echo $aRow->fichier; ?>"/></td>
        </tr>
        <tr>
            <td><label for="plv_cat">PLV cat&eacute;gorie</label></td>
            <td><?php echo form_dropdown('plv_cat', dropdown_data($selected_plv_setting), $selected_plv_cat) ?></td>
           
        </tr>
        <tr>
            <td><label for="pro">Proffesionel</label></td>
            <td><?php echo form_dropdown('pro', dropdown_data($selected_pro_setting), $selected_pro) ?></td>
           
        </tr>
        <tr>
            <td></td> <td><input type="submit" value="Update" name ="submit"/> </td>
        </tr>
    </table>

</div>

